<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"   "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="com.sun.java.swing.plaf.windows.resources.windows"%>
<%@page import="javax.tools.JavaFileObject"%>
<%@page import="javax.swing.JOptionPane"%>
<%@page import="java.io.PrintWriter"%>



<%@page contentType="text/html" pageEncoding="UTF-8"%>

<html lang="en">
    <head>
        <script languaje="javascript" type="text/javascript" src="./js/validacionesletrasnume.js" ></script>
        <script languaje="javascript" type="text/javascript" src="./js/validacionesletrasnume.js" ></script>
        <title>Arrendamientos: NuevoHogar</title>

        <link rel="stylesheet" href="reset.css" type="text/css" media="all">
        <link rel="stylesheet" href="layout.css" type="text/css" media="all">
        <link rel="stylesheet" href="style.css" type="text/css" media="all">
        <!-- comentario prueba>
        <!--[if lt IE 9]>
                <script type="text/javascript" src="js/html5.js"></script>
                <style type="text/css">
                        .bg{ behavior: url(js/PIE.htc); }
                </style>
        <![endif]-->
        <!--[if lt IE 7]>
                <div style=' clear: both; text-align:center; position: relative;'>
                        <a href="http://www.microsoft.com/windows/internet-explorer/default.aspx?ocid=ie6_countdown_bannercode"><img src="http://www.theie6countdown.com/images/upgrade.jpg" border="0"  alt="" /></a>
                </div>
        <![endif]-->
    </head>

    <body>


        <div class="body1">
            <div class="main">
                <!-- header -->
                <header>
                    <h1><a href="index.jsp" id="logo"></a></h1>
                    <div class="wrapper">
                        <ul id="icons">
                            <li><a href="https://www.facebook.com/ArreNuevoHogar"  title="Facebook"><img src="Imagenes/icon1.jpg" alt=""></a></li>
                            <li><a href="https://twitter.com/ArrendamientosN"  title="Twitter"><img src="Imagenes/icon2.jpg" alt=""></a></li>
                        </ul>
                    </div>
                    <nav>
                        <ul id="menu">
                            <li id="menu_active"><a href="index.jsp">Inicio</a></li>
                            <li><a href="QuienesSomos.jsp">Quiénes somos</a></li>
                        </ul>
                    </nav>
                </header>
                <!-- / header -->
            </div>
        </div>
        <!-- content -->
        <div class="body2">
            <div class="main">
                <section id="content">
                    <div class="wrapper">
                        <article class="col1">
                            <div id="slider">
                                <img src="Imagenes/img1.jpg" alt="" title="<strong>Villa Neverland, 2006</strong><span>9 rooms, 3 baths, 6 beds, building size: 5000 sq. ft. &nbsp; &nbsp; &nbsp; Price: $ 600 000 &nbsp; &nbsp; &nbsp; <a href='#'>Read more</a></span>">
                                <img src="Imagenes/img2.jpg" alt="" title="<strong>Villa Lipsum, 2008</strong><span>8 rooms, 4 baths, 4 beds, building size: 4500 sq. ft. &nbsp; &nbsp; &nbsp; Price: $ 500 000 &nbsp; &nbsp; &nbsp; <a href='#'>Read more</a></span>">
                                <img src="Imagenes/img3.jpg" alt="" title="<strong>Villa Dolor Sid, 2007</strong><span>11 rooms, 3 baths, 5 beds, building size: 6000 sq. ft. &nbsp; &nbsp; &nbsp; Price: $ 650 000 &nbsp; &nbsp; &nbsp; <a href='#'>Read more</a></span>">
                                <img src="Imagenes/img4.jpg" alt="" title="<strong>Villa Nemo Enim, 2010</strong><span>5 rooms, 2 baths, 4 beds, building size: 3000 sq. ft. &nbsp; &nbsp; &nbsp; Price: $ 400 000 &nbsp; &nbsp; &nbsp; <a href='#'>Read more</a></span>">
                                <img src="Imagenes/img5.jpg" alt="" title="<strong>Villa Nam Libero, 2003</strong><span>7 rooms, 4 baths, 6 beds, building size: 7000 sq. ft. &nbsp; &nbsp; &nbsp; Price: $ 700 000 &nbsp; &nbsp; &nbsp; <a href='#'>Read more</a></span>">
                            </div>
                        </article>
                        <article class="col2">
                            <form id="form_1" method="post" action="IniciarSesion" >
                                <div >
                                    <h3>Inicio de sesión</h3>
                                    <div class="row">
                                        Cédula<br>
                                        <input type="text" name="txtCedula" class="input"/>
                                    </div>
                                    <div class="row">
                                        Contraseña<br>
                                        <input type="password" name="txtpassword" class="input"/>
                                    </div>  
                                    <input type="submit" id="Login" name="Entrar" value="Entrar"/>
                                </div>
                                <%

                                    String r = (String) session.getAttribute("respueta");
                                    if (r != null) {
                                        if (r.equals("DV")) {

                                            out.print("<script language='javascript' type='text/javascript'> alert('Debe diligenciar todos los campos');</script>");

                                        } else if (r.equals("Invalido")) {

                                            out.print("<script language='javascript' type='text/javascript'> alert('Cédula y/o contraseña invalidos');</script>");
                                        }
                                        session.setAttribute("respueta", null);
                                    }

                                %>

                            </form>
                        </article>
                    </div>
                    <div class="wrapper">
                        <article class="col1">
                            <div class="pad_left1">
                                <h2 class="pad_bot1">&nbsp;</h2>
                            </div>
                        </article>
                    </div>
                </section>
            </div>
        </div>



        <div class="body4">
            <div class="main">
                <!-- footer -->
                <footer>moviendo cositas y acà y Santiago Restrepo Rodríguez</span><!-- {%FOOTER_LINK} -->
                </footer>
                <!-- / footer -->
            </div>
        </div>		
    </body>
</html>